import request from '@/utils/request'

// 查询全局附件模板列表
export function listScmAttachmentTemplate(query) {
  return request({
    url: '/scm/scmAttachmentTemplate/list',
    method: 'get',
    params: query
  })
}

// 查询全局附件模板详细
export function getScmAttachmentTemplate(id) {
  return request({
    url: '/scm/scmAttachmentTemplate/' + id,
    method: 'get'
  })
}

// 新增全局附件模板
export function addScmAttachmentTemplate(data) {
  return request({
    url: '/scm/scmAttachmentTemplate',
    method: 'post',
    data: data
  })
}

// 修改全局附件模板
export function updateScmAttachmentTemplate(data) {
  return request({
    url: '/scm/scmAttachmentTemplate',
    method: 'put',
    data: data
  })
}

// 删除全局附件模板
export function delScmAttachmentTemplate(id) {
  return request({
    url: '/scm/scmAttachmentTemplate/' + id,
    method: 'delete'
  })
}
